#ifndef NVTEMP_H
#define NVTEMP_H

#include <QObject>
#include <string>
#include "nvml.h"
#include <QTimer>

class NvTemp : public QObject {
    Q_OBJECT
    Q_PROPERTY(QString getGpuTemperature READ getGpuTemperature NOTIFY tempChanged)

public:
    explicit NvTemp(QObject *parent = nullptr);
    ~NvTemp();
    QString getGpuTemperature() const;
private:
    void updateUtilization();
    QTimer *timer = nullptr;

Q_SIGNALS:
    void tempChanged();
};

#endif // NVTEMP_H
